Fix build scripts and panic=abort
authorAlex Crichton <alex@alexcrichton.com>
Mon, 23 May 2016 15:44:27 +0000 (08:44 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 23 May 2016 15:44:27 +0000 (08:44 -0700)
commit183c59c0b3b953ac4a672a91f8b6c930911f7c16
tree4c83fb88a59112a6be41c099f8afe184a6be2752
parent259324cd8f9bb6e1068a3a2b77685e90fda3e3b6
Fix build scripts and panic=abort

Build scripts were apparently always compiled with the "dev" profile rather than
the standard "match whatever the normal build was" profile, which meant that if
dev/release disagreed on panic=abort you'd get compile errors. Seems bad!

This commit fixes this by just having build scripts always compile with the same
profile as libraries (for now), as this was the original intention anyway.

Closes #2726
src/cargo/ops/cargo_rustc/context.rs
tests/test_cargo_compile_custom_build.rs